package code.创建型模式.FactoryMethod.demo2.NumberFactory;

/**
 * @author guanyuan.wu.sz
 * @since 2022/6/21
 */
public class Test {
    public static void main(String[] args) {
        NumberFactory factory = NumberFactory.getFactory();
        Number result = factory.parse("123.456");
        System.out.println(result);
    }
}
